import fetch from './util/fetch';

export function login(data)
{
  return fetch({
    url: 'merchant/login',
    method: 'post',
    data: data,
  });
  
}

export function getInfo(token)
{
  return fetch({
    url: 'merchant',
    method: 'get',
    params: {token}
  });
}

export function logout()
{
  return fetch({
    url: 'merchant/logout',
    method: 'post'
  });
}



